import request from '@/utils/request'

// 查询端管理-引擎列表
export function listManageNodeEngine(query) {
  return request({
    url: '/manager/manageNodeEngine/list',
    method: 'get',
    params: query
  })
}

// 查询端管理-引擎详细
export function getManageNodeEngine(engineId) {
  return request({
    url: '/manager/manageNodeEngine/getInfo/' + engineId,
    method: 'get'
  })
}

// 新增端管理-引擎
export function addManageNodeEngine(data) {
  return request({
    url: '/manager/manageNodeEngine/add',
    method: 'post',
    data: data
  })
}

// 新增端管理-引擎
export function addBatchManageNodeEngine(data) {
  return request({
    url: '/manager/manageNodeEngine/addBatch',
    method: 'post',
    data: data
  })
}

// 修改端管理-引擎
export function updateManageNodeEngine(data) {
  return request({
    url: '/manager/manageNodeEngine/edit',
    method: 'post',
    data: data
  })
}

export function updateBatchManageNodeEngine(data) {
  return request({
    url: '/manager/manageNodeEngine/editBatch',
    method: 'post',
    data: data
  })
}

// 删除端管理-引擎
export function delManageNodeEngine(engineId) {
  return request({
    url: '/manager/manageNodeEngine/remove/' + engineId,
    method: 'get'
  })
}

export function delManageNodeEngineByNodeId(nodeId) {
  return request({
    url: '/manager/manageNodeEngine/removeByNodeId/' + nodeId,
    method: 'get'
  })
}
